package com.koron.device.bean.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class EqParamDto {

    @ApiModelProperty("参数id")
    private List<String> paramId;

    @ApiModelProperty("")
    private String paramResult;

//    @ApiModelProperty("")
//    private String paramvalue;

    @ApiModelProperty("查询标记 1全匹配、2模糊匹配")
    private String sign;

    @ApiModelProperty(value = "查询标记 1全匹配=、2模糊匹配like", hidden = true)
    private String signDb;

    public String getSignDb() {
        if (this.sign.equals("1")) {
            signDb = "=";
        }
        if (this.sign.equals("2")) {
            signDb = "like";
        }
        return signDb;
    }

}
